package com.njtoyo.taxi.admin.mapper.master.entity.local_service;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.local_service.LifeCommodityExchangeType;
import com.njtoyo.taxi.admin.mapper.master.enums.local_service.LifeMerchantCommodityCategoryState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商品类型表
 * </p>
 *
 * @author Dell
 * @since 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "LifeMerchantCommodityCategory对象", description = "商品类型表")
public class LifeMerchantCommodityCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "类型名称")
    private String name;

    @ApiModelProperty(value = "商品兑换类型 0:exchange_code[兑换码],1:coupon[优惠券]")
    private LifeCommodityExchangeType commodityExchangeType;

    @ApiModelProperty(value = "状态 0:show[正常],1:hide[不显示]")
    private LifeMerchantCommodityCategoryState state;

    @ApiModelProperty(value = "排序号;越大越前")
    private Integer sortBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


}
